' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%      N a m e :   5 7 A I M 1 5 H _ V 0 7 . t x t                             D a t e :   2 4   J u l   2 0 2 2   Q%
 
 ' Q%  A u t h o r :   L e o n a r d o                                                                                 Q%
 
 ' Q%    S c o p e :   T e s t   o v e r a l l   f u n c t i o n a l i t y                                             Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%H a r d w a r e :   B L D C   m o t o r   w i t h   e n c o d e r                                                 Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%  N o t e :   C O B O T   u p d a t e                                                     1 4   J u l   2 0 2 2   Q%
 
 ' Q%                                                                                                                  Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 O p t i o n   S p e e d   9 
 
 ' B e e p   " 2 5 0 0   1 0 0 ,   1 5 0 0   1 0 0 " 
 
 
 
 ' V a r i a b l e   N u m e r i c   D e b u g   =   0   '   1   =   D E B U G       0   =   N O R M A L 
 
 
 
 R e s t o r e V a r s 
 
 
 
 L o a d   i m a g e s \ 5 7 A I M 1 5 H . j p g 
 
 ' B e e p   " 2 5 0 0   2 0 0 ,   1 5 0 0   2 0 0 ,   2 5 0 0   3 0 0 ,   0 5 0 0 ,   1 5 0 0   3 0 0 " 
 
 ' T T S   S e l e c t V o i c e   L a n g u a g e 
 
 ' T T S   S e t V o l u m e     1 0 0         ' 0   =   m u t e 
 
 ' W a i t   S e c o n d s   2 
 
 T T S   S e t S p e e d   - 1 
 
 
 
 W i n d o w   M i n S i z e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o C o b o t         =   5 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m C o b o t   =   5 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s F r o m C o b o t     =   5 3 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %%%%%
 
 '   Q%  V A R I A B L E   I N I T I A L I Z A T I O N S   &   A S S I G N E M E N T S     Q%  %      %  %%%%  %%%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%    %    %  %    %%
 
 V a r i a b l e   N u m e r i c   S l o t _ M _ 1               =   1 0 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n M o t o r s     =     1 0 
 
 
 
 V a r i a b l e   N u m e r i c   s l o t _ L i m i t s         =     1 2 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ A n a l o g B u t   =       1 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d R             =       7 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d G             =       8 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d B             =       9 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n S c o p e     =     1 3 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S o f t w a r e   l i m i t s 
 
 V a r i a b l e   N u m e r i c   M 1 m a x   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 1 m i n   =           0 
 
 
 
 K e y   1   B t n C o o r d _ M 1 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%%%
 
 '   Q%  B U T T O N S                                                                     Q%  %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%      %
 
 B u t t o n   1   L a b e l   " B t n C o o r d _ M 1 " 
 
 B u t t o n   B t n C o o r d _ M 1   T e x t   " M 1   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 1   C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   2   L a b e l   D e g r e e _ 0 
 
 B u t t o n   D e g r e e _ 0   T e x t   " H o m e   =   0  " 
 
 B u t t o n   D e g r e e _ 0   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   3   L a b e l   D e g r e e _ 1 5 
 
 B u t t o n   D e g r e e _ 1 5   T e x t   " D e g r e e _ 1 5 " 
 
 B u t t o n   D e g r e e _ 1 5   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   4   L a b e l   D e g r e e _ 3 0 
 
 B u t t o n   D e g r e e _ 3 0   T e x t   " D e g r e e _ 3 0 " 
 
 B u t t o n   D e g r e e _ 3 0   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   5   L a b e l   D e g r e e _ 4 5 
 
 B u t t o n   D e g r e e _ 4 5   T e x t   " D e g r e e _ 4 5 " 
 
 B u t t o n   D e g r e e _ 4 5   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   6   L a b e l   D e g r e e _ 9 0 
 
 B u t t o n   D e g r e e _ 9 0   T e x t   " D e g r e e _ 9 0 " 
 
 B u t t o n   D e g r e e _ 9 0   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   7   L a b e l   D e g r e e _ 1 3 5 
 
 B u t t o n   D e g r e e _ 1 3 5   T e x t   " D e g r e e _ 1 3 5 " 
 
 B u t t o n   D e g r e e _ 1 3 5   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   8   L a b e l   D e g r e e _ 1 8 0 
 
 B u t t o n   D e g r e e _ 1 8 0   T e x t   " D e g r e e _ 1 8 0 " 
 
 B u t t o n   D e g r e e _ 1 8 0   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   9   L a b e l   D e g r e e _ 2 7 0 
 
 B u t t o n   D e g r e e _ 2 7 0   T e x t   " D e g r e e _ 2 7 0 " 
 
 B u t t o n   D e g r e e _ 2 7 0   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   1 0   L a b e l   D e g r e e _ 3 1 5 
 
 B u t t o n   D e g r e e _ 3 1 5   T e x t   " D e g r e e _ 3 1 5 " 
 
 B u t t o n   D e g r e e _ 3 1 5   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   1 1   L a b e l   D e g r e e _ 3 6 0 
 
 B u t t o n   D e g r e e _ 3 6 0   T e x t   " D e g r e e _ 3 6 0 " 
 
 B u t t o n   D e g r e e _ 3 6 0   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   1 2   L a b e l   T e m p e r a t u r e 
 
 B u t t o n   T e m p e r a t u r e   T e x t   " T e m p =   " 
 
 B u t t o n   T e m p e r a t u r e   C o l o r   M i s t y R o s e 
 
 
 
 B u t t o n   1 3   L a b e l   V o l t a g e 
 
 B u t t o n   V o l t a g e   T e x t   " V o l t = " 
 
 B u t t o n   V o l t a g e   C o l o r   L i g h t G r e e n 
 
 
 
 B u t t o n   1 6   L a b e l   C l o s e A l l 
 
 B u t t o n   C l o s e A l l   T e x t   " C L O S E   A L L " 
 
 B u t t o n   C l o s e A l l   C o l o r   R e d 
 
 
 
 ' B u t t o n   1 7   T e x t   Y e l l o w A c t i o n 
 
 ' B u t t o n   Y e l l o w A c t i o n   C o l o r   Y e l l o w 
 
 ' 
 
 ' B u t t o n   1 8   T e x t   B l u e A c t i o n 
 
 ' B u t t o n   B l u e A c t i o n   C o l o r   B l u e 
 
 ' 
 
 ' B u t t o n   1 9   T e x t   R e d A c t i o n 
 
 ' B u t t o n   R e d A c t i o n   C o l o r   R e d 
 
 ' 
 
 ' B u t t o n   2 0   T e x t   G r e e n A c t i o n 
 
 ' B u t t o n   G r e e n A c t i o n   C o l o r   G r e e n 
 
 ' 
 
 ' B u t t o n   2 1   T e x t   W h i t e A c t i o n 
 
 ' B u t t o n   W h i t e A c t i o n   C o l o r   W h i t e 
 
 ' 
 
 ' B u t t o n   2 2   T e x t   B l a c k A c t i o n 
 
 ' B u t t o n   B l a c k A c t i o n   C o l o r   B l a c k 
 
 ' 
 
 ' B u t t o n   2 3   T e x t   S a f e P o s 
 
 ' B u t t o n   S a f e P o s   T e x t   " S a f e   P o s i t i o n " 
 
 ' B u t t o n   S a f e P o s   C o l o r   B i s q u e 
 
 ' 
 
 ' B u t t o n   2 4   T e x t   C o l o r B u t t o n 
 
 ' B u t t o n   C o l o r B u t t o n     T e x t   " C O L O R   B U T T O N " 
 
 ' B u t t o n   C o l o r B u t t o n     C o l o r   P l u m 
 
 ' 
 
 B u t t o n   1 7   L a b e l   E x e c C o b o t 
 
 B u t t o n   E x e c C o b o t   T e x t   " E x e c   C o b o t " 
 
 B u t t o n   E x e c C o b o t   C o l o r   S t e e l B l u e 
 
 B u t t o n   1 8   L a b e l   S e l e c t S e q u e n c e 
 
 B u t t o n   S e l e c t S e q u e n c e   T e x t   " S e l e c t   C O B O T   s e q u e n c e " 
 
 B u t t o n   S e l e c t S e q u e n c e   C o l o r   S t e e l B l u e 
 
 
 
 B u t t o n   2 0   L a b e l   M o t o r T e s t 
 
 B u t t o n   M o t o r T e s t   T e x t   " M o t o r T e s t " 
 
 B u t t o n   M o t o r T e s t   C o l o r   O r a n g e 
 
 
 
 ' B u t t o n   1 7   T e x t   R e p T e s t 
 
 ' B u t t o n   R e p T e s t   T e x t   "   " R E P E T . T E S T " " 
 
 ' B u t t o n   R e p T e s t   C o l o r   K h a k i 
 
 
 
 ' B u t t o n   1 6   T e x t   E m e r g e n c y 
 
 ' B u t t o n   E m e r g e n c y   T e x t   " E M E R G E N C Y " 
 
 ' B u t t o n   E m e r g e n c y   C o l o r   R e d 
 
 ' B u t t o n   E m e r g e n c y   S l o t     S l o t _ E m e r g e n c y 
 
 
 
 B u t t o n   2 2   L a b e l   R e d O n 
 
 B u t t o n   R e d O n   C o l o r   R e d 
 
 B u t t o n   2 3   L a b e l   G r e e n O n 
 
 B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 B u t t o n   2 4   L a b e l   Y e l l o w O n 
 
 B u t t o n   Y e l l o w O n   C o l o r   Y e l l o w 
 
 B u t t o n   2 5   L a b e l   B l u e O n 
 
 B u t t o n   B l u e O n   C o l o r   M e d i u m B l u e 
 
 B u t t o n   2 6   L a b e l   W h i t e O n 
 
 B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 B u t t o n   2 7   L a b e l   R g b O f f 
 
 B u t t o n   R g b O f f   C o l o r   B l a c k 
 
 
 
 B u t t o n   2 8   L a b e l   E n a b l e V o i c e 
 
 B u t t o n   E n a b l e V o i c e   T e x t   " E n a b l e V o i c e " 
 
 B u t t o n   E n a b l e V o i c e   C o l o r   S k y B l u e 
 
 B u t t o n   2 9   L a b e l   D i s a b l e V o i c e 
 
 B u t t o n   D i s a b l e V o i c e   T e x t   " D i s a b l e   M o t o r s " 
 
 B u t t o n   D i s a b l e V o i c e   C o l o r   S k y B l u e 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   K E Y S 
 
 K e y   R i g h t 	 	   E x e c K e y s 
 
 K e y   L e f t   	 	   E x e c K e y s 
 
 K e y   U p   	 	 	   E x e c K e y s 
 
 K e y   D o w n   	 	   E x e c K e y s 
 
 K e y   P a g e u p 	 	   E x e c K e y s 
 
 K e y   P a g e d o w n 	   E x e c K e y s 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O A D   A P P S                                                                 Q%  %      %    %  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %    %  %%%%
 
 L o a d   T h e r e m i n o _ M o d B u s . e x e 
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r . e x e 
 
 ' L o a d   T h e r e m i n o _ S l o t V i e w e r _ S t r i n g s . e x e 
 
 L o a d   T h e r e m i n o _ C o b o t . e x e 
 
 L o a d   T h e r e m i n o _ S i g n a l S c o p e . e x e 
 
 ' L o a d   T e r m i n a l _ T r a n s m i t . e x e 
 
 ' L o a d   T e r m i n a l _ R e c e i v e . e x e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%%  %%%%%  %%%%%  %%%%%
 
 '   Q%    S T A R T   F R O M   H E R E                                                   Q%    %%%%      %      %%%%%  %%%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%      %      %      %  %    %%      %
 
 ' E n a b l e M o t o r s 
 
 C o n t r o l s   O p e n T e x t B o x 
 
 D i s a b l e A l l B u t t o n s 
 
 C o n t r o l s   C l e a r T e x t B o x 
 
 G r e e n O n 
 
 P r i n t   T T S v o i c e s 
 
 E n a b l e A l l B u t t o n s 
 
 U p d a t e B u t t o n s 
 
 S h o w S e q u e n c e N a m e 
 
 L o a d   H i d e 
 
 ' E n a b l e V o i c e 
 
 D i s a b l e V o i c e 
 
 L o o p 
 
 S t o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%  %      %%%%  %%%%  %%%%
 
 '   Q%  C L O S E   A L L                                                                 Q%  %      %      %    %  %%%%  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%  %%%%  %%%%
 
 L a b e l   C l o s e A l l 
 
 	 R e d O n 
 
 	 S a v e V a r s 
 
 	 S t o p C o b o t 
 
 	 W i n d o w   S i z a b l e 
 
 	 S l o t ( S l o t _ S i g n S c o p e )   =   0 
 
 	 T T S   S p e a k   " E n d   O f   P r o g r a m . " 
 
 	 L o a d   C l o s e A p p s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%%  %%%%  %%%%
 
 '   Q%  S T O P   E V E N T   ( w h e n   p r e s s i n g   s t o p   b u t t o n )           Q%  %%%%      %      %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %      %%%%  %
 
 L a b e l   E v e n t S t o p 
 
 	 S a v e V a r s 
 
 	 R e d O n 
 
 	 S t o p C o b o t 
 
 	 E n a b l e A l l B u t t o n s 
 
 	 W i n d o w   S i z a b l e 
 
 	 S l o t ( S l o t _ S i g n S c o p e )   =   0 
 
 	 T T S   S p e a k   " E n d   O f   P r o g r a m . " 
 
 E n d 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                           Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 L a b e l   L o o p 
 
 	 U p d a t e B u t t o n s 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 '   0 . 0 2   s e c .   o r   m o r e   t o   a l l o w   t i m e   f o r   k e y s   a n d   o t h e r   t a s k s 
 
 	 W a i t   S e c o n d s   0 . 0 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 G o t o   L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                       Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   1 6 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   1 6 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S A V E   L O A D   V A R S                                                       Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S a v e V a r s 
 
 	 s 1 1   =   S e q u e n c e N a m e 
 
 	 S a v e   V a r s 
 
 	 P r i n t   C R L F   +   " S A V E D   S E Q U E N C E N A M E   =   "   +   S e q u e n c e N a m e   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   R e s t o r e V a r s 
 
 	 L o a d   V a r s 
 
 	 S e q u e n c e N a m e   =   s 1 1 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%%  %%%%  %      %  %%%%
 
 '   Q%  M O V E   S T E P P E R S                                                             Q%  %      %  %    %  %      %  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %      %  %%%%    %%%    %%%%
 
 L a b e l   D e g r e e _ 0 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   0   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   0 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 R e d O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 1 5 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   1 5   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   1 5 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 G r e e n O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 3 0 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   3 0   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   3 0 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 Y e l l o w O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 4 5 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   4 5   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   4 5 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 B l u e O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 9 0 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   9 0   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   9 0 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 W h i t e O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 1 3 5 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   1 3 5   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   1 3 5 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 R e d O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 1 8 0 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   1 8 0   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   1 8 0 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 G r e e n O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 2 7 0 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   2 7 0   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   2 7 0 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 B l u e O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 3 1 5 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   3 1 5   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   3 1 5 
 
 	 W a i t   T T S r e a d y 
 
 	 G r e e n O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 L a b e l   D e g r e e _ 3 6 0 
 
 	 T T S   S p e a k   " M o t o r   g o   a t   3 6 0   d e g r e e . " 
 
 	 S l o t ( S l o t _ M _ 1 )   =   3 6 0 
 
 	 U p d a t e B u t t o n s 
 
 	 W a i t   T T S r e a d y 
 
 	 W h i t e O n 
 
 	 W a i t A l l M o t o r s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%%
 
 '   Q%  W A I T   A L L   M O T O R   u n t i l   s t o p p e d                           Q%  %      %  %%%%  %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%%  %    %  %      %
 
 L a b e l   W a i t A l l M o t o r s 
 
 	 V a r i a b l e   N u m e r i c   W A M 1 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 F o r   W A M 1   =   1   T o   I n f i n i t y 
 
 	 	 I f   A b s ( S l o t ( S l o t _ M _ 1   +   1 ) )   <   0 . 0 1 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 U p d a t e B u t t o n s 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E M E R G E N C Y                                                                 Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E m e r g e n c y 
 
 ' 	 D i s a b l e A l l B u t t o n s 
 
 ' 	 B u t t o n   1 5   E n a b l e d 
 
 ' 	 B u t t o n   1 5   C o l o r   F l a s h i n g 7   Y e l l o w   R e d 
 
 ' 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 ' 	 	 R e d O n 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 R g b O f f 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 L o a d   s o u n d \ A l a r m 1 0 b . w a v 
 
 ' 	 N e x t 
 
 S t o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%
 
 '   Q%    S   U   B   R   O   U   T   I   N   E       A   R   E   A                           Q%  %%%%  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%
 
 L a b e l   E n a b l e V o i c e 
 
 	 T T S   S e t V o l u m e   1 0 0 
 
 	 B u t t o n   E n a b l e V o i c e   D i s a b l e d 
 
 	 B u t t o n   D i s a b l e V o i c e   E n a b l e d 
 
 	 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e V o i c e 
 
 	 T T S   S e t V o l u m e   0 
 
 	 B u t t o n   E n a b l e V o i c e   E n a b l e d 
 
 	 B u t t o n   D i s a b l e V o i c e   D i s a b l e d 
 
 R e t u r n 
 
 
 
 
 
 
 
 
 
 
 
 ' L a b e l   E n a b l e M o t o r s 
 
 ' 	 S l o t ( S l o t _ E n M o t o r s )   =   1 0 0 0 
 
 ' 	 B u t t o n   E n a b l e M o t o r s   D i s a b l e d 
 
 ' 	 B u t t o n   D i s a b l e M o t o r s   E n a b l e d 
 
 ' 	 W a i t   S e c o n d s   0 . 0 1 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   D i s a b l e M o t o r s 
 
 ' 	 S l o t ( S l o t _ E n M o t o r s )   =   0 
 
 ' 	 B u t t o n   D i s a b l e M o t o r s   D i s a b l e d 
 
 ' 	 B u t t o n   E n a b l e M o t o r s   E n a b l e d 
 
 ' 	 W a i t   S e c o n d s   0 . 0 1 
 
 ' R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%  %%%%
 
 '   Q%  L E D   C O L O R S                                                               Q%  %      %%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%
 
 L a b e l   R e d O n 
 
 	 T T S   S p e a k   " S t a t u s   r e d . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   M a g e n t a O n 
 
 	 T T S   S p e a k   " S t a t u s   m a g e n t a . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   Y e l l o w O n 
 
 	 T T S   S p e a k   " S t a t u s   y e l l o w . " 
 
 	 S l o t   S l o t _ L e d R   =   9 0 0 
 
 	 S l o t   S l o t _ L e d G   =   4 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   G r e e n O n 
 
 	 T T S   S p e a k   " S t a t u s   g r e e n . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   B l u e O n 
 
 	 T T S   S p e a k   " S t a t u s   b l u e . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   W h i t e O n 
 
 	 T T S   S p e a k   " S t a t u s   w h i t e . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   R g b O f f 
 
 	 T T S   S p e a k   " S t a t u s   b l a c k . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   R e d B l i n k 
 
 	 R e d O n 
 
 	 W h i t e O n 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %          %%%%  %    %  %%%%%
 
 '   Q%    C O L O R   B U T T O N                                                         Q%  %        %    %  %          %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%    %%%%  %%%%      %
 
 L a b e l   C o l o r B u t t o n 
 
 	 V a r i a b l e   N u m e r i c   C B 1 
 
 	 ' B u t t o n   C o l o r B u t t o n   C o l o r   F l a s h i n g 7   B l a c k   W h i t e 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   d o u b l e   c h e c k 
 
 	 	 C B 1   =   S l o t ( S l o t _ A n a l o g B u t ) 
 
 	 	 W a i t   S e c o n d s   0 . 0 1 
 
 	 	 I f   A b s ( S l o t ( S l o t _ A n a l o g B u t )   -   C B 1 )   >   1 0 
 
 	 	 	 C B 1   =   9 9 9 9 9 
 
 	 	 E n d I f 
 
 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   T e s t   v a l u e s 
 
 	 	 S e l e c t   T r u e 
 
 	 	 	 C a s e   C B 1   <   1 6 
 
 	 	 	 	 ' Y e l l o w A c t i o n 
 
 	 	 	 C a s e   C B 1   <   5 5 
 
 	 	 	 	 ' B l u e A c t i o n 
 
 	 	 	 C a s e   C B 1   <   1 2 0 
 
 	 	 	 	 ' G r e e n A c t i o n 
 
 	 	 	 C a s e   C B 1   <   1 9 0 
 
 	 	 	 	 ' R e d A c t i o n 
 
 	 	 	 C a s e   C B 1   <   5 0 0 
 
 	 	 	 	 ' W h i t e A c t i o n 
 
 	 	 E n d S e l e c t 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 L a b e l   S a y Y e l l o w 
 
 	 T T S   S p e a k   " G o i n g   Y e l l o w   t a r g e t . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y G r e e n 
 
 	 T T S   S p e a k   " G o i n g   G r e e n   t a r g e t ,   t i m e   i n t e r p o l a t e   1   s e c o n d . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y B l u e 
 
 	 T T S   S p e a k   " R o b o t A N N O   G o i n g   B l u e   t a r g e t . " 
 
 	 W a i t   T T S r e a d y 
 
 	 C l e a r C o m m a n d 
 
 R e t u r n 
 
 
 
 L a b e l   S a y R e d 
 
 	 T T S   S p e a k   " G o i n g   R e d   t a r g e t ,   t i m e   i n t e r p o l a t e   2   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y W h i t e 
 
 	 T T S   S p e a k   " G o i n g   W h i t e   t a r g e t ,   t i m e   i n t e r p o l a t e   2 . 5   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y B l a c k 
 
 	 T T S   S p e a k   " G o i n g   B l a c k   t a r g e t ,   t i m e   i n t e r p o l a t e   3   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y F a s t R n d M o v e 
 
 	 T T S   S p e a k   " M a k i n g   r a n d o m   m o v e m e n t   a t   h i g h   s p e e d . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%    %    %  %%%%  %      %
 
 '   Q%  J O G   W I T H   K E Y B O A R D                                                 Q%      %    %    %  %  %%    %%%    %%%      %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%    %%%%  %%%%    %  %%  %%%%      %
 
 L a b e l   E x e c K e y s 
 
 	 V a r i a b l e   N u m e r i c   J o g S p e e d   =   0 . 1 
 
 	 S e l e c t   T r u e 
 
 	 	 C a s e   K e y ( " S H I F T " ) 
 
 	 	 	 J o g S p e e d   =   J o g S p e e d   *   0 . 0 1 
 
 	 	 C a s e   K e y ( " C T R L " ) 
 
 	 	 	 J o g S p e e d   =   J o g S p e e d   *   0 . 0 0 1 
 
 	 E n d S e l e c t 
 
 	 ' 
 
 	 S e l e c t   M o t o r T o E d i t 
 
 	 	 C a s e   1 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M _ 1 )   =   L i m i t ( S l o t ( S l o t _ M _ 1 )   -   J o g S p e e d ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M _ 1 )   =   L i m i t ( S l o t ( S l o t _ M _ 1 )   +   J o g S p e e d ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 	 E n d I f 
 
 	 E n d S e l e c t 
 
 	 ' 
 
 	 P r i n t V a l u e s 
 
 	 ' E n a b l e M o t o r s 
 
 	 ' Y e l l o w O n 
 
 	 U p d a t e B u t t o n s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%      %%  %%  %%%%  %%%%%
 
 '   Q%    M O T O R   S E L E C T I O N   F O R   J O G                                   Q%      %    %    %  %  %%      %  %  %  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%    %%%%  %%%%      %      %  %%%%      %
 
 V a r i a b l e   N u m e r i c   M o t o r T o E d i t 
 
 L a b e l   d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 1   C o l o r   L i g h t B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 1 
 
 	 M o t o r T o E d i t   =   1 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 1   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     P R I N T   C O O R D I N A T E S   A N D   U P D A T E   C O O R D I N A T E   B U T T O N S 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   P r i n t V a l u e s 
 
 	 s 1   =   " M o v e T o   "   +   F o r m a t ( S l o t ( S l o t _ M _ 1 ) ,   " 0 . 0 0 " ) 
 
 	 P r i n t   C R L F   +   s 1 
 
 R e t u r n 
 
 
 
 L a b e l   U p d a t e B u t t o n s 
 
 	 B u t t o n   B t n C o o r d _ M 1   T e x t   " M 1 = "   +   F o r m a t ( S l o t ( S l o t _ M _ 1 )   -   S l o t ( S l o t _ M _ 1   +   1 ) ,   " 0 . 0 0 " )   +   "  " 
 
 	 B u t t o n   T e m p e r a t u r e   T e x t   " T e m p = "   +   F o r m a t ( S l o t ( 1 5 6 ) ,   " 0 . 0 " )   +   "  " 
 
 	 B u t t o n   V o l t a g e   T e x t   " V o l t = "   +   F o r m a t ( ( S l o t ( 1 5 5 ) / 3 2 7 ) ,   " 0 . 0 " ) 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%  %%  %%      %%%%  %%  %%  %%%%  %%%%
 
 '   Q%  C O M M A N D S   F R O M   C O B O T                                             Q%  %        %    %  %  %  %  %  %  %      %%%        %      %%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %      %  %      %      %%%%  %%  %%  %%%%  %%%%
 
 L a b e l   E v e n t _ C o m m a n d s F r o m C o b o t 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D o   n o t   p r i n t   l i n e s   c o n t a i n i n g   ' ' 
 
 	 P r i n t   "   E x e c :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 S e l e c t   C o m m a n d T e x t 
 
 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   A C T I O N S 
 
 	 	 C a s e   " W a i t A l l M o t o r s " 
 
 	 	 	 W a i t A l l M o t o r s 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L E D   c o l o r s 
 
 	 	 C a s e   " R e d " 
 
 	 	 	 R e d O n 
 
 	 	 C a s e   " G r e e n " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " B l u e " 
 
 	 	 	 B l u e O n 
 
 	 	 C a s e   " Y e l l o w " 
 
 	 	 	 Y e l l o w O n 
 
 	 	 C a s e   " R G B O F F " 
 
 	 	 	 R g b O f f 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S p e a k i n g 
 
 	 	 C a s e   " S a y Y e l l o w " 
 
 	 	 	 S a y Y e l l o w 
 
 	 	 C a s e   " S a y G r e e n " 
 
 	 	 	 S a y G r e e n 
 
 	 	 C a s e   " S a y B l u e " 
 
 	 	 	 S a y B l u e 
 
 	 	 C a s e   " S a y R e d " 
 
 	 	 	 S a y R e d 
 
 	 	 C a s e   " S a y W h i t e " 
 
 	 	 	 S a y W h i t e 
 
 	 	 C a s e   " S a y B l a c k " 
 
 	 	 	 S a y B l a c k 
 
 	 	 C a s e   " S a y F a s t R n d M o v e " 
 
 	 	 	 S a y F a s t R n d M o v e 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L E D   C O L O R S 
 
 	 	 C a s e   " R e d O n " 
 
 	 	 	 R e d O n 
 
 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " M a g e n t a O n " 
 
 	 	 	 M a g e n t a O n 
 
 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " B l u e O n " 
 
 	 	 	 B l u e O n 
 
 	 	 C a s e   " Y e l l o w O n " 
 
 	 	 	 Y e l l o w O n 
 
 	 	 C a s e   " W h i t e O n " 
 
 	 	 	 W h i t e O n 
 
 	 	 C a s e   " R G B O F F " 
 
 	 	 	 R g b O f f 
 
 	 	 C a s e   " P a u s e " 
 
 	 	 	 W a i t   S e c o n d s   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   1 ) 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 S t o p 	 	 	 	 	 	 	 	 ' 
 
 	 E n d S e l e c t 
 
 	 C l e a r C o m m a n d 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ C o m m a n d s F r o m C o b o t )   =   " " 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     C O B O T   F I L E   M A N A G E M E N T 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   I n i t S e q u e n c e P a t h s 
 
 	 V a r i a b l e   S t r i n g   E d i t o r F o l d e r 
 
 	 V a r i a b l e   S t r i n g   E d i t o r A p p 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e P a t h A n d N a m e 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e N a m e 
 
 	 ' 
 
 	 E d i t o r F o l d e r   =   " . \ A p p s \ T h e r e m i n o _ E d i t o r \ " 
 
 	 ' 
 
 	 E d i t o r A p p   =   E d i t o r F o l d e r   +   " T h e r e m i n o _ E d i t o r . e x e " 
 
 	 ' 
 
 	 S e q u e n c e P a t h A n d N a m e   =   E d i t o r F o l d e r   +   " S e q u e n c e s \ "   +   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     C O M M A N D S   T O   C o b o t 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e n d C o m m a n d 
 
 	 V a r i a b l e   S t r i n g   C o m m a n d 
 
 	 S l o t T e x t   S l o t _ C o m m a n d s T o C o b o t   =   C o m m a n d 
 
 	 V a r i a b l e   N u m e r i c   S C 1 
 
 	 '   - - - - - - - - - - - - - - - - - - -   t i m e o u t   1   S e c   ( 1 0 x 0 . 1 ) 
 
 	 F o r   S C 1   =   1   T o   1 0 
 
 	 	 I f   S l o t T e x t ( S l o t _ C o m m a n d s T o C o b o t )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c C o b o t 
 
 	 V a r i a b l e   N u m e r i c   E C 1 
 
 	 F o r   E C 1   =   1   T o   I n f i n i t y 
 
 	 	 S e n d C o m m a n d ( D i s a b l e R e p e a t ) 
 
 	 	 S e n d C o m m a n d ( S e l e c t L i n e   1 ) 
 
 	 	 S e n d C o m m a n d ( S t a r t E x e c u t i o n ) 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p C o b o t 
 
 	 S e n d C o m m a n d ( S t o p E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 V a r i a b l e   N u m e r i c   W C R 1 
 
 	 F o r   W C R 1   =   1   T o   I n f i n i t y 
 
 	 	 U p d a t e B u t t o n s 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 I f   S l o t T e x t ( S l o t _ R e s p o n s e s F r o m C o b o t )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S e l e c t S e q u e n c e 
 
 	 V a r i a b l e   S t r i n g   S C F 1 
 
 	 S C F 1   =   S e l e c t F i l e ( " A p p s \ T h e r e m i n o _ C o b o t \ S e q u e n c e s " ) 
 
 	 I f   S C F 1   < >   " " 
 
 	 	 S e q u e n c e N a m e   =   S C F 1 
 
 	 E n d I f 
 
 	 S e n d C o m m a n d ( L o a d S e q u e n c e   +   S e q u e n c e N a m e ) 
 
 	 S h o w S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w S e q u e n c e N a m e 
 
 	 B u t t o n   S e l e c t S e q u e n c e   T e x t   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' I n d e x     N a m e                                                     C u l t u r e     G e n d e r       A g e 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' 1             M i c r o s o f t   D a v i d   D e s k t o p               e n - U S         M a l e           A d u l t 
 
 ' 2             M i c r o s o f t   Z i r a   D e s k t o p                 e n - U S         F e m a l e       A d u l t 
 
 ' 3             M i c r o s o f t   E l s a   D e s k t o p                 i t - I T         F e m a l e       A d u l t 
 
 ' 4             M i c r o s o f t   H u i h u i   D e s k t o p             z h - C N         F e m a l e       A d u l t 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%  %%%        %%%%  %%%%  %%  %%
 
 '   Q%  C O M M A N D S   t o   C O B O T                                                     Q%    %        %    %  %%%%      %        %    %  %  %  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%  %%%%  %%%%      %%%%  %%%%  %      %
 
 
 
 
 
 